import request from '@/config/axios'
import type { Dayjs } from 'dayjs';

/** 汇报标签信息 */
export interface ReportingTag {
          id: number; // 编号
          tagName?: string; // 标签名称
          tagCode?: string; // 标签代码
          tagRemark: string; // 标签备注
          enabled?: boolean; // 标签启用状态
  }

// 汇报标签 API
export const ReportingTagApi = {
  // 查询汇报标签分页
  getReportingTagPage: async (params: any) => {
    return await request.get({ url: `/system/reporting-tag/page`, params })
  },

  // 查询汇报标签详情
  getReportingTag: async (id: number) => {
    return await request.get({ url: `/system/reporting-tag/get?id=` + id })
  },

  // 新增汇报标签
  createReportingTag: async (data: ReportingTag) => {
    return await request.post({ url: `/system/reporting-tag/create`, data })
  },

  // 修改汇报标签
  updateReportingTag: async (data: ReportingTag) => {
    return await request.put({ url: `/system/reporting-tag/update`, data })
  },

  // 删除汇报标签
  deleteReportingTag: async (id: number) => {
    return await request.delete({ url: `/system/reporting-tag/delete?id=` + id })
  },

  /** 批量删除汇报标签 */
  deleteReportingTagList: async (ids: number[]) => {
    return await request.delete({ url: `/system/reporting-tag/delete-list?ids=${ids.join(',')}` })
  },

  // 导出汇报标签 Excel
  exportReportingTag: async (params) => {
    return await request.download({ url: `/system/reporting-tag/export-excel`, params })
  },
	// 获取用户标签信息列表
	
}
export const getSimpleReportingTagList = (): Promise<ReportingTag[]> => {
	  return request.get({ url: '/system/reporting-tag/page' })
	}